<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>操作列表</title>
  <link rel="stylesheet" href="styles.css">
</head>

<style>
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
  }

  .container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .action-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow: auto;
  }

  .action-list th,
  .action-list td {
    padding: 12px 15px;
    text-align: left;
  }

  .action-list th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
  }

  .action-list tbody tr:nth-child(even) {
    background-color: #f3f3f3;
  }

  .action-list tbody tr:hover {
    background-color: #e6e6e6;
  }

  .action-list .btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
  }

  .action-list .btn:hover {
    background-color: #007bff;
    color: white;
  }

  .action-list .btn-run {
    color: #28a745;
  }

  .action-list .btn-run:hover {
    background-color: #28a745;
  }

  .action-list .btn-edit {
    color: #007bff;
  }

  .action-list .btn-edit:hover {
    background-color: #007bff;
  }

  .action-list .btn-delete {
    color: #dc3545;
  }

  .action-list .btn-delete:hover {
    background-color: #dc3545;
  }

  .action-list th,
  .action-list td {
    text-align: center;
  }
</style>

<body>
  <div class="container">
    <table class="action-list">
      <thead>
        <tr>
          <th>X坐标</th>
          <th>Y坐标</th>
          <th>操作类型</th>
          <th>延迟</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>100</td>
          <td>200</td>
          <td>点击</td>
          <td>500ms</td>
          <td>
            <button class="btn btn-run">运行</button>
            <button class="btn btn-edit">修改</button>
            <button class="btn btn-delete">删除</button>
          </td>
        </tr>
        <tr>
          <td>100</td>
          <td>200</td>
          <td>点击</td>
          <td>500ms</td>
          <td>
            <button class="btn btn-run">运行</button>
            <button class="btn btn-edit">修改</button>
            <button class="btn btn-delete">删除</button>
          </td>
        </tr>
        <tr>
          <td>100</td>
          <td>200</td>
          <td>点击</td>
          <td>500ms</td>
          <td>
            <button class="btn btn-run">运行</button>
            <button class="btn btn-edit">修改</button>
            <button class="btn btn-delete">删除</button>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</body>

</html>